package com.lucksoft.map.cost.param;

import java.math.BigDecimal;

import io.swagger.v3.oas.annotations.media.Schema;

/**
 * 地图费用计算参数类
 * 
 * @author Qwen
 * @date 2025/10/13
 * @version 1.0.0
 */
@Schema(description = "地图费用计算参数")
public class MapCostParam {
    
    @Schema(description = "里程数(公里)", example = "10.5")
    private Double distance;
    
    @Schema(description = "单价(元/公里)", example = "2.5")
    private Double unitPrice;
    
    @Schema(description = "计算结果费用", example = "26.25")
    private BigDecimal cost;
    
    public MapCostParam() {
    }
    
    public MapCostParam(Double distance, Double unitPrice) {
        this.distance = distance;
        this.unitPrice = unitPrice;
    }
    
    public Double getDistance() {
        return distance;
    }
    
    public void setDistance(Double distance) {
        this.distance = distance;
    }
    
    public Double getUnitPrice() {
        return unitPrice;
    }
    
    public void setUnitPrice(Double unitPrice) {
        this.unitPrice = unitPrice;
    }
    
    public BigDecimal getCost() {
        return cost;
    }
    
    public void setCost(BigDecimal cost) {
        this.cost = cost;
    }
    
    @Override
    public String toString() {
        return "MapCostParam{" +
                "distance=" + distance +
                ", unitPrice=" + unitPrice +
                ", cost=" + cost +
                '}';
    }
}